class Date:
    def __init__(self, year, month, day):
        self.year = year
        self.month = month
        self.day = day

    def __str__(self):
        return "{}/{}/{}".format(self.year, self.month, self.day)

    def tomorrow(self):
        self.day += 1

    @staticmethod
    def parse_from_string(date_str):
        year, month, day = tuple(date_str.split("-"))
        return Date(int(year), int(month), int(day))

    @classmethod
    def from_string(cls, date_str):
        year, month, day = tuple(date_str.split("-"))
        return cls(int(year), int(month), int(day))

    @staticmethod
    def valid_str(date_str):
        year, month, day = tuple(date_str.split("-"))
        if int(year)>0 and int(month)>0 and int(day)>0:
            return True
        return False

if __name__ == '__main__':
    test = Date(2022, 1, 9)

    print(test)
    test.tomorrow()
    print(test)
    date = "2022-01-09"
    test1 = Date(*tuple(date.split("-")))
    print(test1)
    test2 = Date.from_string(date)
    print(test2)
    print(Date.valid_str("0-0-0"))
